import { Message } from "element-ui";

const errorHandle = (err) => {
  switch (err.response.status) {
    case 404:
      Message.error('404 (Not Found)')
      break;
    case 500:
      Message.error('500 (Internal Server Error)')
      break;
    default:
      Message.error('Unknown Error')
  }
};

export default errorHandle;
